import yagmail
def send_mail(filename):
    mail = yagmail.SMTP(user='2248557244@qq.com',password='mvjoauhcxznmdiic',host='smtp.qq.com')
    mail.send(to='2248557244@qq.com',subject='月考报告',contents='月考月考月考月考',attachments=filename)